package com.ruoyi.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class CommentVo {
    private Integer id;
    private String content;
    private Integer parentId;
    private Integer userId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private Integer likes;
    // 发布评论用户信息
    private CommentUserVo user;
    // 该评论的回复列表
    private List<CommentVo> reply;
}